import server from '@/config/server'

const api = {
  list: server.api().post('/dt-bi/bonus/bonusSummary'),
  export: server.api().post('/dt-bi/bonus/bonusSummary/export').tag('downloadCenter')
}

function list(info) {
  return api.list.fetch(info)
}

function exportList(info) {
  return api.export.fetch(info)
}

export default {
  list,
  exportList
}
